package com.a.basis;

public class TextType {
    public static void main(String[] args) {
        System.out.println(Byte.MAX_VALUE);//能取到的最大值（注意：Byte.class）
        System.out.println(Short.MIN_VALUE);
        double num1=2.2;
        double num2=1.2;
        System.out.println(num1-num2);//=1.0000000000000002

        char c1='A';//字符
        char c2=65;
        char c3='柴';
        System.out.println(c1);
        System.out.println((int)c3);

        short num=123;
        byte target= (byte) num;//强制转换类型（目标类型小于源类型）,可能损失精度
        System.out.println(target);

        int c=10;
        c++;
        System.out.println(c);//=11

    }
}
